<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="web3.min.js"></script>
</head>
<body>
<script>
//    var web3 = new Web3();
//    web3.setProvider(new web3.providers.HttpProvider('https://api.myetherapi.com/eth'));
//    web3.eth.getBalance("0xb7E431c7986B33106cF719FF970142Fc0b786d42").toString();

        var web3 = new Web3();
    web3.setProvider(new web3.providers.HttpProvider('https://api.myetherapi.com/eth'));
//web3.eth.blockNumber();
    var res = web3.eth.getBalance("0xb7e431c7986b33106cf719ff970142fc0b786d42");

console.log(res);
 web3.eth.sendTransaction({
    from:'0xb7e431c7986b33106cf719ff970142fc0b786d42',
     to:'0x0B95313657aE3524f5216B16764b8acbbd8e95Db',
     value:'0x00'
}, function (error,data) {
console.log(data);
 })
//    var filter = web3.eth.filter('pending');
//    filter.watch(function(error, result) {
//        if (!error) {
//            web3.eth.getTransaction(result, function(error, data) {
//                console.log(data);
////                if (!error) $("#newTxs tr:first").after(''+data.from+''+data.to+' '+web3.fromWei(data.value,'ether').toString()+' ETH ');
//            });
//        }
//    });
</script>
</body>
</html>